<!DOCTYPE html>

<html>

	<head>
		<meta charset="utf-8">
		<title>大学生综合服务管理系统</title>
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="format-detection" content="telephone=no">
		<link rel="stylesheet" href="css/xadmin.css" />
		<link rel="stylesheet" href="plugins/layui/css/layui.css" media="all" />
		<link rel="stylesheet" href="css/global.css" media="all">
		<link rel="stylesheet" type="text/css" href="http://www.jq22.com/jquery/font-awesome.4.6.0.css">
		<script type="text/javascript" src="plugins/layui/layui.js"></script>
		<script type="text/javascript" src="datas/nav.js"></script>
		<script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
		<script src="js/index.js"></script>
		<script src="js/xadmin.js"></script>
			
		<!--锁屏模板 start-->
		<script type="text/template" id="lock-temp">
			<div class="admin-header-lock" id="lock-box">
				<div class="admin-header-lock-img">
					<img src="images/admin.jpg"/>
				</div>
				<div class="admin-header-lock-name" id="lockUserName">beginner</div>
				<input type="text" class="admin-header-lock-input" value="输入密码解锁.." name="lockPwd" id="lockPwd" />
				<button class="layui-btn layui-btn-small" id="unlock">解锁</button>
			</div>
		</script>
		<!--锁屏模板 end -->

		<script type="text/javascript">
			//获取cookie代码
			var role = null;
			var getCookie = function (name) {
			  var arr;
			  var reg = new RegExp("(^| )" + name + "=([^;]*)(;|$)");
			  if (arr = document.cookie.match(reg)){
			    return arr[2];
			  }
			  else
			    return null;
			};
			$(function(){
				var id = getCookie('userId');
				if(id==null){
					alert('请先登录！');
					window.location.href = 'http://localhost:8080/index.html';
				};
				$.ajax({
                    url:"/bin/GetUser",
                    type:"POST",
                    async:true,
                    dataType:"json",
                    data:{"id":id},
                    success:function (data) {
                    	 role = data.role;
                      	 $("#user").append("<img src=\""+data.picture+"\" />");
                      	 $("#user").append("<span>"+data.openId+"</span>");
                    },
                });
			});
		</script>
	</head>

	<body>
		<div class="layui-layout layui-layout-admin" style="border-bottom: solid 5px #1aa094;">
			<div class="layui-header header header-demo" style="background: url(images/bg.png); background-size: 100%;">
				<div class="layui-main">
					<div class="admin-login-box">
						<a class="logo" style="left: 0;" href="main.html">
							<span style="font-family:STXingkai;font-size:35px;"><i class="layui-icon" style="font-size: 30px;">&#xe628;</i> Intelligence</span>
						</a>
						<div class="admin-side-toggle">
							<i class="fa fa-th-list" aria-hidden="true"></i>
						</div>
						<div class="admin-side-full">
							<i class="fa fa-arrows-alt" aria-hidden="true"></i>
						</div>
					</div>
					<ul class="layui-nav admin-header-item">
						<button class="layui-btn layui-btn-radius"><i class="layui-icon">&#xe607;</i>帮助</button>
						<button class="layui-btn layui-btn-radius"><i class="layui-icon">&#xe60b;</i>关于</button>
						<button class="layui-btn layui-btn-radius"><i class="layui-icon">&#xe614;</i>设置</button>
						<a href="index.html" class="layui-btn layui-btn-danger layui-btn-radius"><i class="fa fa-sign-out" aria-hidden="true"></i> 注销</a>
						<!--<li class="layui-nav-item" id="video1">
							<a href="javascript:;">视频</a>
						</li>-->
						<li class="layui-nav-item">
							<a id="user" href="javascript:;" class="admin-header-user">
								<!--<img src="http://localhost:8080/20190220111946027.jpg" />-->
								<!--<span>admin</span>-->
							</a>
							<dl class="layui-nav-child">
								<dd>
									<a href="javascript:;"><i class="layui-icon">&#xe612;</i> 个人信息</a>
								</dd>
								<dd>
									<a href="javascript:;" onclick="x_admin_show('修改个人信息','bin/admin-edit.html',450,400)"><i class="fa fa-gear" aria-hidden="true"></i> 修改信息</a>
								</dd>
								<dd id="lock">
									<a href="javascript:;">
										<i class="fa fa-lock" aria-hidden="true" style="padding-right: 3px;padding-left: 1px;"></i> 锁&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;屏
									</a>
								</dd>
								<!--<dd>
									<a href="index.html"><i class="fa fa-sign-out" aria-hidden="true"></i> 注销</a>
								</dd>-->
							</dl>
						</li>
					</ul>
					<ul class="layui-nav admin-header-item-mobile">
						<li class="layui-nav-item">
							<a href="login.html"><i class="fa fa-sign-out" aria-hidden="true"></i> 注销</a>
						</li>
					</ul>
				</div>
			</div>
			<div class="layui-side layui-bg-black" id="admin-side">
				<div class="layui-side-scroll" id="admin-navbar-side" lay-filter="side">
				</div>
			</div>
			<div class="layui-body" style="bottom: 0;border-left: solid 2px #1AA094;" id="admin-body">
				<div class="layui-tab admin-nav-card layui-tab-brief" lay-filter="admin-tab">
					<ul class="layui-tab-title">
						<li class="layui-this">
							<i class="fa fa-dashboard" aria-hidden="true"></i>
							<cite>控制面板</cite>
						</li>
					</ul>
					<div class="layui-tab-content" style="min-height: 150px; padding: 0px 0 0 0;">
						<div class="layui-tab-item layui-show">
							<iframe src="bin/welcome.html"></iframe>
						</div>
					</div>
				</div>
			</div>
			<div class="layui-footer footer footer-demo" id="admin-footer">
				<div class="layui-main">
					<p style="padding-right: 185px;">Copyright ©2019 </p>
				</div>
			</div>
			<div class="site-tree-mobile layui-hide">
				<i class="layui-icon">&#xe602;</i>
			</div>
			<div class="site-mobile-shade"></div>
			
		</div>
	</body>

</html>